package com.yanyu.space.common.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "space.xxljob")
public class XxlJobProperties {

    private Admin admin = new Admin();

    private String accessToken;

    private Executor executor = new Executor();

    @Data
    public class Admin {
        private String addresses;
    }

    @Data
    public class Executor {
        private String appname;

        private String ip;

        private int port;

        private String logPath;

        private int logRetentionDays;
    }
}
